package com.genexususa.eo.google.test.conversion;

import com.genexususa.eo.google.connection.ConversionTrackerManager;
import com.genexususa.eo.google.test.Constants;

public class ConsumeUpdateAdCallMetricsConversion {

    public static void main(String[] args){
        //17804727

        String xml = "<GA_AdCallMetricsConversionCollection xmlns=\"L2TMediaTrunk\">\n" +
                "\t<GA_AdCallMetricsConversion>\n" +
                "\t\t<AdCallMetricsConversionGxId>1772</AdCallMetricsConversionGxId>\n" +
                "\t\t<AdCallMetricsConversionId>17804727</AdCallMetricsConversionId>\n" +
                //"\t\t<Name>Ad Call Metrics Conversion #5</Name>\n" +
                "\t\t<Status>D</Status>\n" +
                //"\t\t<Category>D</Category>\n" +
                //"\t\t<viewthroughLookbackWindow>1</viewthroughLookbackWindow>\n" +
                //"\t\t<isProductAdsChargeable>true</isProductAdsChargeable>\n" +
                //"\t\t<productAdsChargeableConversionWindow>1500</productAdsChargeableConversionWindow>\n" +
                //"\t\t<phoneCallDuration>30</phoneCallDuration>\n" +
                //"\t\t<ctcLookbackWindow>45</ctcLookbackWindow>\n" +
                //"\t\t<countingType>O</countingType>\n" +
                //"\t\t<defaultRevenueValue>1.5</defaultRevenueValue>\n" +
                //"\t\t<alwaysUseDefaultRevenueValue>false</alwaysUseDefaultRevenueValue>\n" +
                "\t</GA_AdCallMetricsConversion>\n" +
                "</GA_AdCallMetricsConversionCollection>";

        ConversionTrackerManager ctm = new ConversionTrackerManager();
        ctm.SetClientId(Constants.testAccountEmiliano);
        String res = ctm.UpdateAdCallMetricsConversion(xml);
        ctm.Finalize();
        System.out.println(res);
    }
}
